hysop.backend.device.opencl.operator.directional.opencl_directional_operator module

class hysop.backend.device.opencl.operator.directional.opencl_directional_operator.OpenClDirectionalOperator(splitting_dim, splitting_direction, dt_coeff, **kwds)[source]

Bases: DirectionalOperatorBase, OpenClOperator

Directional operator in a given direction, OpenCl version.

OpenCL kernels are build once per dimension in order to handle directional splitting with resolution non uniform in directions.

Field requirements are set such that the current direction will be contiguous in memory.

Create a directional operator in a given direction.

Parameters:
  • splitting_direction (int) – Direction of this operator.

  • splitting_dim – The dimension of the splitting.

  • dt_coeff – Coefficient that should be applied on simulation timestep.

splitting_direction

Direction of this operator.

Type:

int

splitting_dim

The dimension of the splitting.

Type:

int

dt_coeff

Coefficient that should be applied on simulation timestep.

Type:

float